Skip to content

fix: accept Claude native trajectories - #52

Open
vincentkoc wants to merge 1 commit into
mainfrom
fix/native-claude-trajectory-eligibility
Open

fix: accept Claude native trajectories#52
vincentkoc wants to merge 1 commit into
mainfrom
fix/native-claude-trajectory-eligibility

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Marks Claude Code native trajectories as real harness events so completed Claude runs remain eligible for native aggregation.

Why?

The native runner already converts Claude Code stream-json output into trajectory.json, but the harness allowlist omitted claude-code. Aggregation therefore classified otherwise valid Claude runs as trajectory_unavailable.

Changes

  • add claude-code to the real-trajectory harness allowlist
  • assert every pinned native harness reports real_harness_events

Live proof

A native Claude Code control run completed four tasks with four result files, four valid completed results, and no infrastructure failures. Aggregation classified every trajectory as real; the run remained ineligible only because it was intentionally marked as an exploratory four-task subset.

  • coverage: 4/4
  • score: 0.75
  • exact passes: 3
  • trajectory complete: true
  • trajectory status: real for all four tasks
  • infrastructure failures: 0
  • exclusion reason: exploratory_subset

Tests

  • python -m pytest -q passes locally (444 passed, 5 skipped)
  • python -m ruff check clawbench app.py scripts tests passes locally
  • live Claude Code native run aggregates as real harness events

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 12:09 AM ET / 04:09 UTC.

ClawSweeper review

What this changes

The PR adds Claude Code to ShellBench’s real-native-trajectory allowlist and tests that all pinned native harnesses report real harness events.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This is a focused, source-consistent correction: current main already produces Claude Code trajectories but labels the pinned harness as unsupported. Keep it open for a repository decision because merging changes which completed runs qualify as native benchmark evidence and can affect longitudinal interpretation.

Priority: P2
Reviewed head: ac1c974c12749dddb5d49af734561cec59910c65
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent repair with regression coverage; the remaining uncertainty is the maintainer-owned benchmark-evidence policy decision.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor is a repository member, so the external-contributor proof gate does not apply; the PR body also records an after-fix native control run.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor is a repository member, so the external-contributor proof gate does not apply; the PR body also records an after-fix native control run.
Evidence reviewed 5 items Current manifest classification: Current main pins Claude Code as a native harness, but excludes it from REAL_TRAJECTORY_HARNESSES; trajectory_mode_for_harness consequently writes unsupported into its run manifest.
Existing Claude trajectory producer: The runtime already has a dedicated Claude Code branch that writes a trajectory, so the allowlist entry aligns manifest metadata with an existing native artifact path.
Focused branch delta: The branch changes one classification entry and adds a four-harness regression assertion; its merge base is current main, with no stale-base rewrite detected.
Findings None None.
Security None None.

How this fits together

ShellBench runs pinned agent harnesses and records a manifest plus per-task trajectory artifacts for each native evaluation. Aggregation uses the manifest’s trajectory classification and artifacts to decide whether completed results count as native benchmark evidence.

flowchart LR
  A[Pinned harness] --> B[Native run job]
  B --> C[Run manifest]
  B --> D[Trajectory artifact]
  C --> E[Aggregation checks]
  D --> E
  E --> F[Eligible native results]
Loading

Decision needed

Question Recommendation
Should ShellBench count completed Claude Code stream-json trajectories as real native evidence in aggregation and longitudinal benchmark reporting? Accept the native-evidence classification: Merge the focused allowlist correction and treat completed Claude Code trajectory artifacts as real native evidence.

Why: The code change is mechanically narrow, but the allowlist controls benchmark eligibility rather than only display text, so a repository owner should explicitly accept the evidence-policy consequence.

Before merge

  • Resolve merge risk (P1) - Merging reclassifies completed Claude Code runs from unsupported to real native trajectory evidence, which can change aggregate eligibility and longitudinal benchmark comparisons.
  • Complete next step (P2) - No code repair is needed; a repository owner needs to approve the benchmark-evidence eligibility change before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Patch scope 2 files affected; production +1/-1, tests +12 The branch is limited to one classification entry and one regression guard.

Merge-risk options

Maintainer options:

  1. Approve the eligibility correction (recommended)
    Confirm the stream-json artifact contract and merge the one-entry allowlist change with its regression test.
  2. Pause for evidence-policy clarification
    Keep the current classification until maintainers specify a stricter native-evidence requirement for Claude Code.

Technical review

Best possible solution:

Confirm that Claude Code stream-json trajectories meet ShellBench’s real-native-evidence contract, then merge this narrow allowlist correction with its regression guard.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main pins Claude Code as a native harness and has a dedicated trajectory writer, yet the allowlist makes its manifest trajectory mode unsupported; the PR’s focused assertion captures that mismatch.

Is this the best way to solve the issue?

Yes for the source defect: adding the existing trajectory-producing harness to the real-evidence allowlist is the narrowest repair. The remaining question is whether maintainers accept that eligibility policy.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning high; reviewed against 884dd1bb5511.

Labels

Label justifications:

  • P2: This is a bounded benchmark-eligibility correction without evidence of a live service outage.
  • merge-risk: 🚨 compatibility: The changed harness classification determines whether completed Claude Code runs become eligible native benchmark evidence.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor is a repository member, so the external-contributor proof gate does not apply; the PR body also records an after-fix native control run.

Evidence

What I checked:

  • Current manifest classification: Current main pins Claude Code as a native harness, but excludes it from REAL_TRAJECTORY_HARNESSES; trajectory_mode_for_harness consequently writes unsupported into its run manifest. (scripts/native_eval/models.py:93, 884dd1bb5511)
  • Existing Claude trajectory producer: The runtime already has a dedicated Claude Code branch that writes a trajectory, so the allowlist entry aligns manifest metadata with an existing native artifact path. (scripts/native_eval/runtime.py:1044, 884dd1bb5511)
  • Focused branch delta: The branch changes one classification entry and adds a four-harness regression assertion; its merge base is current main, with no stale-base rewrite detected. (scripts/native_eval/models.py:102, ac1c974c1274)
  • Feature-history provenance: Available local history attributes native-harness stabilization and recent trace reconstruction to Vincent Koc. Deeper history traversal was limited when the partial clone attempted an unavailable promisor fetch. (scripts/native_eval/models.py:93, b9acd9f7a010)
  • Repository policy: No target-repository AGENTS.md was present at the checkout root. (884dd1bb5511)

Likely related people:

  • Vincent Koc: Available main-branch history connects Vincent Koc to native harness stabilization and trace reconstruction in this subsystem. (role: recent native-evaluation contributor; confidence: medium; commits: b9acd9f7a010, 884dd1bb5511; files: scripts/native_eval/models.py, tests/test_native_eval_runner.py)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain an explicit repository decision that Claude Code stream-json artifacts satisfy the real-native-evidence contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (18 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-01T12:21:10.749Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T17:56:41.628Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T19:16:43.925Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T13:16:25.271Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T19:14:46.312Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T20:37:25.866Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T22:18:39.060Z sha ac1c974 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T01:48:10.144Z sha ac1c974 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 17:17
@vincentkoc
vincentkoc requested a review from a team as a code owner July 29, 2026 17:17
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. and removed proof: sufficient Contributor real behavior proof is sufficient. labels Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant